﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.LongER.Business;
using Com.LongER.Business.COMMON;
using Com.LongER.Business.COMMON.COMMONDSTableAdapters;
using Com.LongER.Framework.Utils;

namespace Com.LongER.Business
{
    public class CCOMMON : ABussinessBase
    {
        #region
        /// <summary>
        /// 客户
        /// </summary>
        /// <returns></returns>
        public COMMONDS.M_KEHUDataTable Get客户()
        {
            String connectionString = ConnectionStringUtil.GetConnectionString();
            M_KEHUTableAdapter ta = new M_KEHUTableAdapter(connectionString);

            COMMONDS.M_KEHUDataTable tb = ta.GetData();
            ta.Connection.Close();
            return tb;
        }
        #endregion

        #region
        /// <summary>
        /// 共通
        /// </summary>
        /// <returns></returns>
        public COMMONDS.M_TONGYONGDataTable Get共通()
        {
            String connectionString = ConnectionStringUtil.GetConnectionString();
            M_TONGYONGTableAdapter ta = new M_TONGYONGTableAdapter(connectionString);

            COMMONDS.M_TONGYONGDataTable tb = ta.GetData();
            ta.Connection.Close();
            return tb;
        }
        #endregion
    }
}
